package com.dzf.service.impl;

import com.dzf.dao.UserDao;
import com.dzf.entity.User;
import com.dzf.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wcrc
 * 登录
 */
@Service
public class LoginServiceImpl implements LoginService {
    @Autowired(required = false)
    UserDao UserDao;

    @Override
    public User findByUser(String username) {
        //找用户，如果不为空值就说明找到了
        return UserDao.findByUserName(username);
    }
}
